entrycompletion: Ensure transient_for is set before showing window
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 9 Mar 2015 14:15:23 +0000 (15:15 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 10 Mar 2015 10:15:04 +0000 (11:15 +0100)
commit94ec6b44184067782925fa7dc8880c0d1fc3fbe8
tree6d21ec42e2caff249f48df5b6572b86610ea8de7
parentc352093bdeb2be5390607de13eaf7a21e93272ef
entrycompletion: Ensure transient_for is set before showing window

gtk_entry_set_completion() (and _gtk_entry_completion_connect underneath)
may happen when the entry has no toplevel yet. This window acts as the
"parent" for subsurface windows on wayland, and is indispensable to create
its backing wl_subsurface, so this resulted in non-visible popups there.
Fix this by ensuring transient_for is set before showing the popup.

https://bugzilla.gnome.org/show_bug.cgi?id=745463
gtk/gtkentrycompletion.c